package com.linko.intelligent.sys.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.linko.intelligent.sys.pojo.dto.InstitutionDto;
import com.linko.intelligent.sys.pojo.po.Institution;
import com.linko.intelligent.sys.pojo.query.InstitutionQuery;

import java.util.List;

/**
 * @Author yuan
 * @create 2024/3/15 11:42
 */
public interface InstitutionService extends IService<Institution> {

    public Long save(InstitutionDto dto);

    public Boolean delete(Long id);

    public Boolean update(Long id, InstitutionDto dto);

    public Institution getDetail(Long id);

    public List<Institution> queryList(InstitutionQuery query);

    public PageInfo<Institution> queryPage(InstitutionQuery query);

    List<Institution> getTreeById(InstitutionQuery query);
}
